import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue' 


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
	{
	  path: '/login',
	  name: 'login',
	  component: LoginView,
	  meta: {
		  auth: false,
	  }
	},
	{
	  path: '/register',
	  name: 'register',
	  component: () => import("../views/RegisterView.vue"),
	  meta: {
	  	auth: false,
	  }
	},
	{
		path: '/apply',
		name: "apply",
		component: () => import("../views/ApplyCoffeeView.vue"),
	},
	{
		path: "/preview" ,
		name: "preview",
		component: () => import("../views/PreviewCoffeeView.vue"),
		meta: {
			auth: false,
		}
	}
  ],
})


export default router
